<template>
    <div class="box">
        <div class="top">
            <div>
                <span>运动会志愿者招募</span>
                <span>进行中</span>
            </div>
        </div>
        <div class="content">
            <table>
                <tbody>
                    <tr>
                        <td>
                            活动时间
                        </td>
                        <td>
                            2022-12-20 08:30 - 2022-12-20 10:30
                        </td>
                    </tr>
                    <tr>
                        <td>
                            活动地点
                        </td>
                        <td>
                            中山公园
                        </td>
                    </tr>
                    <tr>
                        <td>
                            活动简介
                        </td>
                        <td>
                            2022武汉马拉松即将举行，现需招募大量志愿者
                        </td>
                    </tr>
                    <tr>
                        <td>
                            活动来源
                        </td>
                        <td>
                            某某马拉松志愿者服务中心
                        </td>
                    </tr>
                    <tr>
                        <td>
                            服务时长
                        </td>
                        <td>
                            2小时
                        </td>
                    </tr>
                    <tr>
                        <td>
                            招募人数
                        </td>
                        <td>
                            20人
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="promptly">
            <h2>立即报名</h2>
        </div>
    </div>
</template>

<style scoped>
#app>div {
    width: 100vw;
    height: 100vh;
    background-color: rgb(245, 245, 245);
}

.top {
    width: 94%;
    height: 10vh;
    padding: 0px 3vw;
    background-color: white;
}

.top>div {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: baseline;
    border-bottom: 1px dashed rgb(73, 73, 73);
}

.top>div span:nth-child(1) {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 0.5vh;
}

.top>div span:nth-child(2) {
    padding: 0px 1vw;
    border-radius: 10px;
    color: white;
    background-color: rgb(199, 199, 199);
}

.content {
    width: 94%;
    padding: 2vh 3vw;
    background-color: white;
    font-size: 14px;
}

.content tr{
    display: flex;
}

.content td{
    display: flex;
    align-items: center;
    height: 5vh;
}

.content td:nth-child(1){
    flex: 1;
}

.content td:nth-child(2){
    flex: 3;
}

.promptly {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(121, 41, 41);
    width: 100%;
    height: 5vh;
    position: fixed;
    bottom: 0px;
    color: white;
}

.bottom h2 {
    font-size: 20px;
}
</style>